<template>
  <div id="lap-app" v-loading="pFormLoading">
    <!--基本表单信息-->
    <el-form ref="form" label-width="100px" :model="formData">
      <el-form-item label="日期" prop="Date">
        <el-input v-model="formData.Date" readonly></el-input>
      </el-form-item>
      <el-form-item label="类型" prop="Logger">
        <el-input v-model="formData.Logger" readonly></el-input>
      </el-form-item>
      <el-form-item label="线程" prop="Thread">
        <el-input v-model="formData.Thread" readonly></el-input>
      </el-form-item>
      <el-form-item label="等级" prop="Level">
        <el-input v-model="formData.Level" readonly></el-input>
      </el-form-item>
      <el-form-item label="消息" prop="Message">
        <el-input type="textarea" v-model="formData.Message" :rows="5" readonly></el-input>
      </el-form-item>
      <el-form-item label="异常" prop="Exception">
        <el-input type="textarea" v-model="formData.Exception" :rows="5" readonly></el-input>
      </el-form-item>
      <el-form-item label="堆栈" prop="TraceStack">
        <el-input type="textarea" v-model="formData.TraceStack" :rows="5" readonly></el-input>
      </el-form-item>
      <el-form-item label="Url" prop="Url">
        <el-input v-model="formData.Url" readonly></el-input>
      </el-form-item>
      <el-form-item label="UrlRefer" prop="UrlRefer">
        <el-input v-model="formData.UrlRefer" readonly></el-input>
      </el-form-item>
      <el-form-item label="Cookie" prop="Cookie">
        <el-input type="textarea" v-model="formData.Cookie" :rows="5" readonly></el-input>
      </el-form-item>
      <el-form-item label="Session" prop="Session">
        <el-input type="textarea" v-model="formData.Session" :rows="5" readonly></el-input>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  mixins: [$lap.FormView],
  name: "app",
  components: {},
  props: ["detailData"],
  data() {
    return {
      title: "", //页面标题
      pageFunctionCode: "", //页面功能编码
      //表单初始化绑定对象
      formData: {},
    };
  },
  methods: {
    /**
     * 加载数据
     */
    platLoadData() {
      const that = this;
      return Promise.resolve().then((data) => {
        that.formData = that.detailData;
      });
    },
  },
};
</script>